/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-05-15 14:54:17
 * @FilePath: /yuxiuproweb/src/api/asc/decorate/index.js
 */
import request from "@/utils/request";

// 查询订单-窗幔定制列表
export function listOrderCustomWindowCurtain(query) {
  return request({
    url: "/pro/orderCustomWindowCurtain/list",
    method: "get",
    params: query,
  });
}

// 查询订单-窗幔定制详细
export function getOrderCustomWindowCurtain(orderCustomWindowCurtainId) {
  return request({
    url: "/pro/orderCustomWindowCurtain/" + orderCustomWindowCurtainId,
    method: "get",
  });
}

// 新增订单-窗幔定制
export function addOrderCustomWindowCurtain(data) {
  return request({
    url: "/pro/orderCustomWindowCurtain",
    method: "post",
    data: data,
  });
}

// 修改订单-窗幔定制
export function updateOrderCustomWindowCurtain(data) {
  return request({
    url: "/pro/orderCustomWindowCurtain",
    method: "put",
    data: data,
  });
}

// 删除订单-窗幔定制
export function delOrderCustomWindowCurtain(orderCustomWindowCurtainIds) {
  return request({
    url: "/pro/orderCustomWindowCurtain/" + orderCustomWindowCurtainIds,
    method: "delete",
  });
}

// 批量-保存订单-窗幔定制
export function batchEditOrderCustomWindowCurtain(data) {
  return request({
    url: "/pro/orderCustomWindowCurtain/batchEdit",
    method: "put",
    data: data,
  });
}
